package com.qdxwx.data.mapper.company;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.company.Company;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface CompanyMapper {

    int insert(Company company);

    int update(Company company);

    int deleteById(int companyId);

    Company getById(int companyId);

    Company getByDomain(String domain);

    List<Company> getList(@Param("e") Company company, @Param("page") PageRequest page);

    long count(@Param("e") Company company);

    int updateDisabled(Company company);
}
